package cn.edu.scau.cmi.pengjiajian.compositeSafe;

public class People implements Component{
	private String name;
	private boolean joining;
	
	public People() {
		this.name = "";
		this.joining = false;
	}
	
	public People(String name){
		this.name = name;
		this.joining = false;
	}
	
	public String getName() {
		return  this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void join() {
		this.joining = true;
	}
	
	public boolean isJoin() {
		return this.joining;
	}
	
	public void quit() {
		this.joining = false;
	}
}
